home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
embedded
/
develop
/
symcoff.arc
/
PLFHREAD.C
< prev
next >
Wrap
Text File
|
1988-11-07
|
2KB
|
33 lines
static char *sccsid[]={"@(#)pldfhread.c 2.1",
"Copyright 1985 by Motorola Inc."};
#include <stdio.h>
#ifdef PCPORT
#include "/pld/src/hd/pcport.h" /*PC-PORT*/
#endif
#include "../hd/pfilehdr.h"
#include "../hd/pldfcn.h"
#include "../hd/pldf_dcl.h" /*PC-PORT*/
/****************** PLDFHREAD ******************************************gs##*/
/* ##*/
/* ##*/
/* Written by: Michael Greenberg - MIL ##*/
/* ##*/
/* ACTION: ##*/
/* Read the file header of a common object file. ##*/
/* ##*/
/* SYNOPSIS: ##*/
int pldfhread(ldptr, filehead) /*##*/
/* ------------------------------ ##*/
register LDFILE *ldptr; /*##*/
register FILHDR *filehead; /*##*/
/* ##*/
/*************************************************************************##*/
{
fseek(IOPTR(ldptr), OFFSET(ldptr), 0);
if(fread(filehead, FILHSZ, 1, IOPTR(ldptr)) != 1)
return(FAILURE);
return(SUCCESS);
}
/* Copyright 1985 by Motorola Inc. */